@echo off
setlocal enabledelayedexpansion

rem 获取当前目录
set "currentDir=%cd%"

rem 定义相对路径
set "relativePath=zxsj-fish.log"

rem 构建完整的路径
set "logFilePath=!currentDir!\%relativePath%"

rem 构建 PowerShell 命令
set "psCommand=Get-Content -Path "!logFilePath!" -Wait -Encoding UTF8; Read-Host Press Enter to exit"

rem 启动 PowerShell 并执行命令
start powershell -NoExit -Command %psCommand%